//
//  RentalTableViewCell.m
//  Item A House
//
//  Created by dllo on 15/5/25.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "RentalTableViewCell.h"

@implementation RentalTableViewCell
- (void)dealloc
{
    [_addrinfo release];
    [_smallareaid release];
    [_title release];
    [_v_houselayout release];
    [_fitment release];
    [_v_price release];
    [super dealloc];
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}
- (void)createView
{

    //标题
    self.title = [[UILabel alloc] initWithFrame:CGRectMake(10, 5, [UIScreen mainScreen].bounds.size.width - 10, 50)];
    self.title.numberOfLines = 0;
    [self.title setFont:[UIFont fontWithName:@"Helvetica-Bold" size:19]];
    [self.contentView addSubview:self.title];
    [self.title release];
    
    //地址
    self.addrinfo = [[UILabel alloc] initWithFrame:CGRectMake(10, 57, [UIScreen mainScreen].bounds.size.width / 2 - 50, 10)];
    [self.contentView addSubview:self.addrinfo];
    [self.addrinfo release];
    
    //次级地址
    self.smallareaid = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 3 + 10, 57, [UIScreen mainScreen].bounds.size.width / 2 - 70, 10)];
    [self.contentView addSubview:self.smallareaid];
    [self.smallareaid release];
    
    //户型
    self.v_houselayout = [[UILabel alloc] initWithFrame:CGRectMake(10, 80, [UIScreen mainScreen].bounds.size.width / 2 - 70, 10)];
    [self.contentView addSubview:self.v_houselayout];
    [self.v_houselayout release];
    
    //装修
    self.fitment = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 3 + 10, 80, [UIScreen mainScreen].bounds.size.width / 2 - 70, 10)];
    [self.contentView addSubview:self.fitment];
    [self.fitment release];
    
    //租价
    self.v_price = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 + 80, 80, [UIScreen mainScreen].bounds.size.width / 2 - 10, 10)];
    self.v_price.textColor = [UIColor redColor];
    [self.contentView addSubview:self.v_price];
    [self.v_price release];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
